package com.sitech.portal.system.service.impl;

import java.util.List;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.system.dao.ISysUserPrivilegeDao;
import com.sitech.portal.system.domain.TblSYS_USER_PRIVILEGE;
import com.sitech.portal.system.service.ISysUserPrivilegeService;

public class SysUserPrivilegeServiceImpl implements ISysUserPrivilegeService {

	private ISysUserPrivilegeDao sysUserPrivilegeDao;
	
	public ISysUserPrivilegeDao getSysUserPrivilegeDao() {
		return sysUserPrivilegeDao;
	}

	public void setSysUserPrivilegeDao(ISysUserPrivilegeDao sysUserPrivilegeDao) {
		this.sysUserPrivilegeDao = sysUserPrivilegeDao;
	}

	@Override
	public void add(TblSYS_USER_PRIVILEGE tblSYS_USER_PRIVILEGE) {
		// TODO Auto-generated method stub
		sysUserPrivilegeDao.add(tblSYS_USER_PRIVILEGE);
	}

	@Override
	public void deleteUserPrivilegeByLogin_id(String login_id) {
		// TODO Auto-generated method stub
		sysUserPrivilegeDao.deleteUserPrivilegeByLogin_id(login_id);
	}

	@Override
	public void deleteUserPrivilegeByPrivilege_id(
			TblSYS_USER_PRIVILEGE tblSYS_USER_PRIVILEGE) {
		// TODO Auto-generated method stub
		sysUserPrivilegeDao.deleteUserPrivilegeByPrivilege_id(tblSYS_USER_PRIVILEGE);
	}

	@Override
	public IPage getAllUserPrivilegeList(PageForm pageForm) {
		// TODO Auto-generated method stub
		return sysUserPrivilegeDao.getAllUserPrivilegeList(pageForm);
	}

	@Override
	public List getUserPrivilegeListByLogin_id(String login_id) {
		// TODO Auto-generated method stub
		return sysUserPrivilegeDao.getUserPrivilegeListByLogin_id(login_id);
	}

	@Override
	public List getUserPrivilegeListByPrivilege_Id(String privilege_id) {
		// TODO Auto-generated method stub
		return sysUserPrivilegeDao.getUserPrivilegeListByPrivilege_Id(privilege_id);
	}

	@Override
	public String getUserPrivilegeStrByLogin_id(String login_id) {
		// TODO Auto-generated method stub
		return sysUserPrivilegeDao.getUserPrivilegeStrByLogin_id(login_id);
	}

	@Override
	public IPage loadUserPrivilegeListByLogin_id(String login_id,
			PageForm pageForm) {
		// TODO Auto-generated method stub
		return sysUserPrivilegeDao.loadUserPrivilegeListByLogin_id(login_id, pageForm);
	}

}
